<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span>我的账户</span> <!---->
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Index/index')}" class="iconfont back on" ></a>
	</header>
    <nav class="bottom">
        <a href="{:U('Index/index')}" class="">
            <i class="iconfont"></i>
            <p>购彩大厅</p>
        </a>

        <a href="{:U('Index/zhui')}" class="">
            <i class="iconfont"></i>
            <p>追号计划</p>
        </a>

        <a href="{:U('Index/activity')}">
            <i class="iconfont"></i>
            <p>活动中心</p>
        </a>

        <a href="{:U('Index/newWinners')}">
            <i class="iconfont"></i>
            <p>发现</p>
        </a>

        <a href="{:U('Users/userCenter')}" class="on">
            <i class="iconfont"></i>
            <p>我的账户</p>
        </a>
    </nav>
    <div data-v-4b98a1e7="" class="main userCenter" s="[object Object]">
        <input type="hidden" id="uid" value="{$uid}">
        <div data-v-4b98a1e7="" class="topInfo">

			<a href="{:U('Users/personalInfo')}" class="" data-v-4b98a1e7="">
			<img data-v-4b98a1e7="" src="{$arr.avatar}"></a>

            <p data-v-4b98a1e7="">账&nbsp;号：
                <ins data-v-4b98a1e7="" id="UserName">{$arr.accounts}</ins>
            </p>
            <span data-v-4b98a1e7="" >余&nbsp;额：
                <span id="umon"  class="GetMoney getMoney ds">
                    <?php if($arr['money'] == .000){echo "0.00";}else{echo sprintf("%.2f",$arr['money']);} ?>
                  &nbsp;元
								<i data-v-44d9ce90=""><a onclick="yin()" style="color: rgb(220, 59, 64);">隐藏</a></i>
                </span>
			</span>
            <span data-v-4b98a1e7="" class="ShowMoney showMoney ns" style="display:none;">已隐藏
                <i data-v-420a60cc=""><a onclick="xian()" style="color: rgb(220, 59, 64);">显示</a></i>
            </span>
            </span>

            <div data-v-4b98a1e7="" class="refresh" style="display: none;"><i data-v-4b98a1e7="" class="iconfont"></i>
            </div>
        </div>
        <div data-v-4b98a1e7="" class="topMoney">
            <a href="./rechargeWay.html" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont m0"></i>
                <span data-v-4b98a1e7="">我要充值</span>
            </a>
            <a class="tixian"  data-pwd="True" data-card="True" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont m1"></i>
                <span data-v-4b98a1e7="">我要提现</span>
            </a>
            <a href="./billRecord.html" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont m2"></i>
                <span data-v-4b98a1e7="">交易记录</span>
            </a>
            <a href="./betRecord.html" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont m3"></i>
                <span data-v-4b98a1e7="">投注记录</span>
            </a>
        </div>

        <div data-v-4b98a1e7="" class="options">
			<a href="{:U('Users/personalInfo')}" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont o1"></i>
                <span data-v-4b98a1e7="">个人信息</span>
                <i data-v-4b98a1e7="" class="iconfont right fr"></i>
			</a>

            <p data-v-4b98a1e7="" class="hr1px"></p>

			<a href="{:U('Users/securityCenter')}" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont o2"></i>
                <span data-v-4b98a1e7="">安全中心</span>
                <i data-v-4b98a1e7="" class="iconfont right fr"></i>
			</a>

            <p data-v-4b98a1e7="" class="hr1px" style="border: 0px solid lightgrey"></p>

            <?php if($arr['utype'] == '1'){ ?>
                <a href="{:U('Users/agentCenter')}" class="active" data-v-4b98a1e7="">
                    <i data-v-4b98a1e7="" class="iconfont o2"></i>
                    <span data-v-4b98a1e7="">代理中心</span>
                    <i data-v-4b98a1e7="" class="iconfont right fr"></i>
                </a>
            <?php }else{?><?php }?>

            <p data-v-4b98a1e7="" class="hr1px"></p> <!---->

            <a href="{:U('Users/PLstatement')}" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont o3"></i>
                <span data-v-4b98a1e7="">今日盈亏</span>
                <i data-v-4b98a1e7="" class="iconfont right fr"></i>
            </a>

            <p data-v-4b98a1e7="" class="hr1px"></p>

            <a href="{:U('Users/Notice')}" class="active" data-v-4b98a1e7="">
                <i data-v-4b98a1e7="" class="iconfont o4"></i>
                <span data-v-4b98a1e7="">我的消息</span>
                <i data-v-4b98a1e7="" class="iconfont right fr"></i>
            </a>
        </div>
    </div>
    <div id="layermbox211" class="layermbox layermbox0 layermshow" index="2" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm width380 layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">您还未设置安全密码和绑定银行卡，无法提现，是否先去设置安全密码?</div>
                    <div class="layermbtn">
                        <span type="0" class="fou">否</span>
                        <span type="1" class="shi">是</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="layermbox212" class="layermbox layermbox0 layermshow" index="2" style="display: none">
        <div class="laymshade"></div>
        <div class="layermmain">
            <div class="section">
                <div class="layermchild layerConfirm width380 layermanim"><h3 style="">温馨提示</h3>
                    <button class="layermend"></button>
                    <div class="layermcont">您还没绑定银行卡，无法提现，是否先去绑定银行卡?</div>
                    <div class="layermbtn">
                        <span type="0" class="fou">否</span>
                        <span type="1" class="shi">是</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>

<script>
    function yin(){
        $(".ds").hide();
        $(".ns").show();
    }
    function xian(){
        $(".ds").show();
        $(".ns").hide();
    }
    $(".fou").click(function(){
        $(".layermbox").hide();
        location.href=location.href;
    });

    //提现 判断有没有安全密码
     $(".tixian").click(function(){
         var uid = $("#uid").val();
         $.ajax({
             type: "POST",
             url: "{:U('Users/is_bang')}",
             data: {'uid': uid},
             success: function (dat) {
                 if (dat == '1') {
                     $("#layermbox211").show();
                 } else if (dat == '2') {
                     $("#layermbox212").show();
                 } else if (dat == '3') {

                 } else {
                     location.href = "{:U('Index/withdraw')}";
                 }
             }
         });
     })
    $("#layermbox211 .shi").click(function () {
        location.href = "{:U('Users/setSafePwd',array('is_bang'=>1))}";
    })
    $("#layermbox212 .shi").click(function () {
        location.href = "{:U('Users/manageBankcard2')}";
    })
</script>